<?php

namespace App\Models\Auth;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Admins extends Model
{
    use HasFactory;

    protected $table = 'admins';
    protected $guarded = [];

    protected $hidden = [
        'password',
        'remember_token',
        'two_factor_recovery_codes',
        'two_factor_secret',
    ];

    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s'
    ];

    const STATUS_ACTIVE = 0;
    const STATUS_LOCK = 1;
    const GENDER_MAN = 1;
    const GENDER_WOMAN = 2;

    public static array $statusMap = [
        self::STATUS_ACTIVE => '激活',
        self::STATUS_LOCK => '锁定'
    ];

    public static array $genderMap = [
        self::GENDER_MAN => '男',
        self::GENDER_WOMAN => '女'
    ];
}
